package design.p14_templateMethod;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-19 10:03
 **/
public class Multiply extends AbstractCalculator{
    @Override
    public int calculator(int num1, int num2) {
        return num1*num2;
    }

    public static void main(String[] args) {
        String s = "8*2";
        Multiply m = new Multiply();
        System.out.println(m.calculator(8,2));
    }
}

